from demo.加密解密 import EncryptData


class LoginTest:
    def test_login(self):
        key = "123456"
        data = "admin"
        ed = EncryptData(key)  # 实例化
        result = ed.encrypt(data)